package android.medicalcloud.com.yiapp.yilian.model;

import android.medicalcloud.com.yiapp.base.utils.ListUtil;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;

/**
 * Created by wanggenlin on 17-5-24.
 */
public class SchRefersModel implements Serializable {
   List<SchReferModel> plan;
    HashMap<Integer,Integer> result = new HashMap<>();
    public List<SchReferModel> getPlan() {
        return plan;
    }

    public HashMap<Integer,Integer> getHasPlan(){
        if (ListUtil.isNullOrEmpty(plan)){
            return null;
        }
        for (SchReferModel m:plan){
            if (m.getUseble()!=4){
                result.put(m.getDay(),m.getUseble());
            }
        }
        return result;
    }
}
